import { Home, Share2, Star, Trash2, Users, MenuSquare, UserCheck, User, Settings, HelpCircle, Clock, FileText, Code, Globe, Database, GitBranch, Palette, Download, Eye, LogIn, HardDrive } from "lucide-react";
import Index from "./pages/Index.jsx";
import MyFile from "./pages/MyFile.jsx";
import Shared from "./pages/Shared.jsx";
import Starred from "./pages/Starred.jsx";
import UserManagement from "./pages/UserManagement.jsx";
import MenuConfig from "./pages/MenuConfig.jsx";
import RoleManagement from "./pages/RoleManagement.jsx";
import Profile from "./pages/Profile.jsx";
import Preferences from "./pages/Preferences.jsx";
import Help from "./pages/Help.jsx";
import TaskList from "./pages/TaskList.jsx";
import TaskHistory from "./pages/TaskHistory.jsx";
import ApiManagement from "./pages/ApiManagement.jsx";
import ApiDocs from "./pages/ApiDocs.jsx";
import ApiTest from "./pages/ApiTest.jsx";
import WorkflowList from "./pages/WorkflowList.jsx";
import WorkflowDesign from "./pages/WorkflowDesign.jsx";
import WorkflowInstance from "./pages/WorkflowInstance.jsx";
import WorkflowHistory from "./pages/WorkflowHistory.jsx";
import ThemeManagement from "./pages/ThemeManagement.jsx";
import ThemeConfig from "./pages/ThemeConfig.jsx";
import ThemePreview from "./pages/ThemePreview.jsx";
import ThemeStore from "./pages/ThemeStore.jsx";
import PluginStore from "./pages/PluginStore.jsx";
import PluginManagement from "./pages/PluginManagement.jsx";
import PluginDevelop from "./pages/PluginDevelop.jsx";
import PluginDocs from "./pages/PluginDocs.jsx";
import SystemConfig from "./pages/SystemConfig.jsx";
import DatabaseConfig from "./pages/DatabaseConfig.jsx";
import CacheConfig from "./pages/CacheConfig.jsx";
import EmailConfig from "./pages/EmailConfig.jsx";
import StorageConfig from "./pages/StorageConfig.jsx";
import PreviewConfig from "./pages/PreviewConfig.jsx";
import StorageSource from "./pages/StorageSource.jsx";
import StorageSourceChoice from "./pages/StorageSourceChoice.jsx";
import Login from "./pages/Login.jsx";

export const navItems = [
  {
    title: "登录",
    to: "/authority/login",
    icon: <LogIn className="h-4 w-4" />,
    page: <Login />,
  },
  {
    title: "首页",
    to: "/",
    icon: <Home className="h-4 w-4" />,
    page: <Index />,
  },
  {
    title: "存储源选择",
    to: "/storage/source-choice",
    icon: <HardDrive className="h-4 w-4" />,
    page: <StorageSourceChoice />,
  },
  {
    title: "我的文件",
    to: "/storage/my-file",
    icon: <Home className="h-4 w-4" />,
    page: <MyFile />,
  },
  {
    title: "共享文件",
    to: "/storage/shared",
    icon: <Share2 className="h-4 w-4" />,
    page: <Shared />,
  },
  {
    title: "已加星标",
    to: "/storage/starred",
    icon: <Star className="h-4 w-4" />,
    page: <Starred />,
  },
  {
    title: "预览配置",
    to: "/storage/preview-config",
    icon: <Eye className="h-4 w-4" />,
    page: <PreviewConfig />,
  },
  {
    title: "存储源",
    to: "/storage/source",
    icon: <HardDrive className="h-4 w-4" />,
    page: <StorageSource />,
  },
  {
    title: "任务管理",
    to: "/tasks/list",
    icon: <FileText className="h-4 w-4" />,
    page: <TaskList />,
  },
  {
    title: "执行历史",
    to: "/tasks/history",
    icon: <Clock className="h-4 w-4" />,
    page: <TaskHistory />,
  },
  {
    title: "API管理",
    to: "/api/management",
    icon: <Code className="h-4 w-4" />,
    page: <ApiManagement />,
  },
  {
    title: "接口文档",
    to: "/api/docs",
    icon: <FileText className="h-4 w-4" />,
    page: <ApiDocs />,
  },
  {
    title: "接口测试",
    to: "/api/test",
    icon: <Database className="h-4 w-4" />,
    page: <ApiTest />,
  },
  {
    title: "流程管理",
    to: "/workflow/list",
    icon: <GitBranch className="h-4 w-4" />,
    page: <WorkflowList />,
  },
  {
    title: "流程设计",
    to: "/workflow/design",
    icon: <Code className="h-4 w-4" />,
    page: <WorkflowDesign />,
  },
  {
    title: "流程实例",
    to: "/workflow/instance",
    icon: <FileText className="h-4 w-4" />,
    page: <WorkflowInstance />,
  },
  {
    title: "工作流历史",
    to: "/workflow/history",
    icon: <Clock className="h-4 w-4" />,
    page: <WorkflowHistory />,
  },
  {
    title: "主题管理",
    to: "/theme/management",
    icon: <Palette className="h-4 w-4" />,
    page: <ThemeManagement />,
  },
  {
    title: "主题配置",
    to: "/theme/config",
    icon: <Settings className="h-4 w-4" />,
    page: <ThemeConfig />,
  },
  {
    title: "主题预览",
    to: "/theme/preview",
    icon: <Eye className="h-4 w-4" />,
    page: <ThemePreview />,
  },
  {
    title: "主题商店",
    to: "/theme/store",
    icon: <Download className="h-4 w-4" />,
    page: <ThemeStore />,
  },
  {
    title: "插件商店",
    to: "/plugin/store",
    icon: <Download className="h-4 w-4" />,
    page: <PluginStore />,
  },
  {
    title: "插件管理",
    to: "/plugin/management",
    icon: <Settings className="h-4 w-4" />,
    page: <PluginManagement />,
  },
  {
    title: "插件开发",
    to: "/plugin/develop",
    icon: <Code className="h-4 w-4" />,
    page: <PluginDevelop />,
  },
  {
    title: "开发文档",
    to: "/plugin/docs",
    icon: <FileText className="h-4 w-4" />,
    page: <PluginDocs />,
  },
  {
    title: "系统配置",
    to: "/config/system",
    icon: <Settings className="h-4 w-4" />,
    page: <SystemConfig />,
  },
  {
    title: "数据库配置",
    to: "/config/database",
    icon: <Database className="h-4 w-4" />,
    page: <DatabaseConfig />,
  },
  {
    title: "缓存配置",
    to: "/config/cache",
    icon: <Globe className="h-4 w-4" />,
    page: <CacheConfig />,
  },
  {
    title: "邮件配置",
    to: "/config/email",
    icon: <FileText className="h-4 w-4" />,
    page: <EmailConfig />,
  },
  {
    title: "存储配置",
    to: "/config/storage",
    icon: <Database className="h-4 w-4" />,
    page: <StorageConfig />,
  },
  {
    title: "用户管理",
    to: "/security/user-management",
    icon: <Users className="h-4 w-4" />,
    page: <UserManagement />,
  },
  {
    title: "菜单配置",
    to: "/security/menu",
    icon: <MenuSquare className="h-4 w-4" />,
    page: <MenuConfig />,
  },
  {
    title: "角色管理",
    to: "/security/roles",
    icon: <UserCheck className="h-4 w-4" />,
    page: <RoleManagement />,
  },
  {
    title: "个人资料",
    to: "/setting/profile",
    icon: <User className="h-4 w-4" />,
    page: <Profile />,
  },
  {
    title: "偏好设置",
    to: "/setting/preferences",
    icon: <Settings className="h-4 w-4" />,
    page: <Preferences />,
  },
  {
    title: "帮助中心",
    to: "/setting/help",
    icon: <HelpCircle className="h-4 w-4" />,
    page: <Help />,
  },
];
